package game.core
{
	import flash.utils.getDefinitionByName;
	
	import game.core.bullet.Bullet;
	import game.core.bullet.FireBullet;
	
	FireBullet;
	public class BulletFactory
	{
		public static const FIRE_BULLET:String = "FireBullet";
		
		public function BulletFactory()
		{
		}
		
		public static function newInstance(className:String):Bullet {
			var packageName:String = "game.core.bullet.";
			className = packageName + className;
			var cls:Class = getDefinitionByName(className) as Class;
			var result:Bullet = new cls() as Bullet;
			return result;
		}
	}
}